export default function ({ route, store, from, redirect, $log }) {
  // if (/^\/admin(\/.*)?$/.test(route.fullPath)) {
  //   if (route.path !== '/admin/login') {
  //     redirect('/admin/login')
  //   }
  // }
  $log({
    path: route.fullPath,
    is_mobile: store.state.isMobile,
    is_wechat: store.state.isWechat,
    user_agent: store.state.ua,
    from: from ? from.fullPath : null,
    os: store.state.os,
  })
}
